package com.group3.hospital.service;

import com.group3.hospital.bean.User;

import java.util.List;

/**
 * @author 秀秀
 */
public interface UserService {
    //注册
    void regist(String username,String userPassword,Long userTel) throws Exception;

    //登录
    User login(String username,Long userTel, String userPassword) throws Exception;

    //更新
    void update(User user) throws Exception;

    //查询所有用户
    List<User> queryAll() throws Exception;

    //删除用户
    void deleteById(Integer userId) throws Exception;

    //根据名称查找用户
    User queryByName(String username) throws Exception;

    //根据Id查找用户
    User queryById(Integer userId) throws Exception;


}
